#version 330 core
precision mediump float;

in vec2 texture_coord;
out vec4 frag_color;

uniform sampler2D image; // exit animation is from image to zero
uniform float progress; // range from 0.0 to 1.0

vec4 transition (vec2 uv);

vec4 getFromColor(vec2 uv) {
  return texture(image, uv);
}

vec4 getToColor(vec2 uv) {
  return vec4(1.00f, 1.00f, 1.00f, 0.00f); // background
}

void main(void) {
  frag_color = transition(texture_coord);
}